package com.demo.fulllink.mapper;

import com.demo.fulllink.module.po.ProductPO;

import java.io.Serializable;
import java.util.List;

public interface ProductMapper {
    
    public List<ProductPO> findAll();
    
    public ProductPO findById(Serializable id);
    
    public void insert(ProductPO productPO);
    
    public void updateById(ProductPO productPO);
    
    public Integer deductionStock(ProductPO productPO);
    
    public void deleteById(Serializable id);
    
    //重置库存
    public void resetStock(ProductPO productPO);
}
